Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Conversation

@liamkennedy89
Copy link
Contributor

couldn't figure out how to call .toISOString()...

closes #4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Date() returns a string object, not a date object. I'd use `new Date() instead.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date

@chibicode chibicode mentioned this pull request Sep 10, 2015
src/grab-node.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to import JSONDateNode at the top of this file, and use JSONDateNode instead of JSONNullNode.

@liamkennedy89
Copy link
Contributor Author

ah, I did try to place the ISO method there but I guess it didn't work because of my other errors! making changes now..

chibicode added a commit that referenced this pull request Sep 10, 2015
added JSONDateNode to display Date values
@chibicode chibicode merged commit 30e65bb into alexkuz:master Sep 10, 2015
@chibicode
Copy link
Contributor

@liamkennedy89 thanks! merged.

@liamkennedy89
Copy link
Contributor Author

@chibicode excellent. thanks for your patience

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dates aren't displayed

2 participants